import { useMemberStore } from "@/store/module/member";

// 根据token判断是否获取信息
export const useGetUserinfo = async () => {
  const memberStore = useMemberStore();
  const token = uni.getStorageSync("token");
  if (token) {
    await memberStore.setUserInfo();
  }
}
